'''time'''
import time

# life_day = int(input("请输入出身日期(如：19700101):"))

print(dir(time))
# print(time.gmtime()[0])

year_ =2003
month_ =4
day_ = 28
birthday_ = (year_,month_,day_,0,0,0,0,0,0)
# 将元组转换成秒数
birthday_seconds = time.mktime(birthday_)
print(birthday_seconds)

# 当前系统时间维护的秒数
current_seconds = time.time()
print(current_seconds)
print((current_seconds-birthday_seconds)/60/60/24)

# birthday_seconds = 1051453005.0
birthday_touper = time.localtime(birthday_seconds)
print(birthday_touper)

print(birthday_touper[6])


# if birthday_touper[6] ==0:
#     print("星期一")
# elif birthday_touper[6] ==1:
#     print("星期二")

